home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_09
/
1109106a
< prev
next >
Wrap
Text File
|
1993-07-16
|
396b
|
25 lines
typedef int c;
enum { i = 1 };
class X
{
char v[i];
int f() { return sizeof(c); }
char c; // error: typedef name 'c'
// redefined after use
enum { i = 2; }; // error: constant 'i'
// redefined after use
};
typedef char *T;
struct Y
{
T a;
typedef long T; // error: T already defined
T b;
};